package com.ruoyi.project.museums.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 问题表
 */
public class Question extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标题 */
    private String title;

//    /** 题目 */
//    private String question;

    /** 问题描述 */
    private String description;

    /** A选项 */
    private String option1;

    /** B选项 */
    private String option2;

    /** C选项 */
    private String option3;

    /** D选项 */
    private String option4;

    /** 正确答案 */
    private String answer;

    /** 图片 */
    private String image;

    /** 判断是否为单选题（0为单选，1为多选）默认为0 */
    private Integer status = 0;

    /**  封装题目信息 */
    public Question() {
    }

    public Question(Long id, String title, String description, String option1, String option2, String option3, String option4, Integer status, String answer) {
        this.id = id;
        this.title = title;
        this.description = description;
        this.option1 = option1;
        this.option2 = option2;
        this.option3 = option3;
        this.option4 = option4;
        this.status = status;
        this.answer = answer;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

//    public String getQuestion() {
//        return question;
//    }
//
//    public void setQuestion(String question) {
//        this.question = question;
//    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOption1() {
        return option1;
    }

    public void setOption1(String option1) {
        this.option1 = option1;
    }

    public String getOption2() {
        return option2;
    }

    public void setOption2(String option2) {
        this.option2 = option2;
    }

    public String getOption3() {
        return option3;
    }

    public void setOption3(String option3) {
        this.option3 = option3;
    }

    public String getOption4() {
        return option4;
    }

    public void setOption4(String option4) {
        this.option4 = option4;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
//                .append("question", getQuestion())
                .append("description", getDescription())
                .append("option1", getOption1())
                .append("option2", getOption2())
                .append("option3", getOption3())
                .append("option4", getOption4())
                .append("answer", getAnswer())
                .append("image", getImage())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
